﻿using System;
using System.ComponentModel.DataAnnotations;
namespace Orange.Logistics.Models {
    public class Module {
        [Key]
        [Column("Id"),Required]
        public int Id { get; set; }

        [Column("ModuleName"), MaxLength(30),Required]
        public string ModuleName { get; set; }

        [Column("ModuleIcon"), MaxLength(100), Required]
        public string ModuleIcon { get; set; }

        [Column("ModuleController"), MaxLength(50)]
        public string ModuleController { get; set; }

        [Column("ParentId")]
        public int? ParentId { get; set; }

        [Column("Sort"), Required]
        public int Sort { get; set; }

        [Column("Status"), MaxLength(2)]
        public string Status { get; set; }

        [Column("Modifyuser"), MaxLength(12), Required]
        public string Modifyuser { get; set; }

        [Column("Modifytime"), Required]
        public DateTime? Modifytime { get; set; }

    }
}